﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildManorInfo extends IMessageBase
    {
        public var guildId:SEntityId;
        public var guildName:String;
        public var mapId:int;
        public var gardenIsActive:int;
        public var lastDayOnlineNum:int;
        public var structures:Array;
        public const _type:int = 5071;
        public static var _regist:SGuildManorInfo = new SGuildManorInfo(true);

        public function SGuildManorInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildManorInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.guildId.__write(param1);
            param1.writeString(this.guildName);
            param1.writeInt(this.mapId);
            param1.writeInt(this.gardenIsActive);
            param1.writeInt(this.lastDayOnlineNum);
            SeqGuildStructHelper.write(param1, this.structures);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guildId = new SEntityId();
            this.guildId.__read(param1);
            this.guildName = param1.readString();
            this.mapId = param1.readInt();
            this.gardenIsActive = param1.readInt();
            this.lastDayOnlineNum = param1.readInt();
            this.structures = SeqGuildStructHelper.read(param1);
            return;
        }// end function

    }
}
